/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * TellMeSecret.java
 *
 * Created on 09-06-2010, 11:12:29
 */

package gruppe1projekt.GUILayer.prototypes;

import gruppe1projekt.GUILayer.BaseWindow;
import javax.swing.JOptionPane;

/**
 *
 * @author Moulde
 */
public class TellMeSecret extends BaseWindow {

    /** Creates new form TellMeSecret */
    public TellMeSecret() {
        initComponents();
        this.setID(573834522);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnTellSecret = new javax.swing.JButton();
        lblSecretLabel = new javax.swing.JLabel();
        lblSecret = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();

        btnTellSecret.setText("Tell secret");
        btnTellSecret.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnTellSecretActionPerformed(evt);
            }
        });

        lblSecretLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblSecretLabel.setText("You told me this secret.");

        lblSecret.setText("jLabel2");

        jButton1.setText("Give me interaction!");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblSecretLabel)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(12, 12, 12)
                        .addComponent(btnTellSecret))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(34, 34, 34)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton1)
                            .addComponent(lblSecret))))
                .addContainerGap(227, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnTellSecret)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblSecretLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblSecret)
                .addGap(37, 37, 37)
                .addComponent(jButton1)
                .addContainerGap(161, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void btnTellSecretActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btnTellSecretActionPerformed
    {//GEN-HEADEREND:event_btnTellSecretActionPerformed
        lblSecret.setText(JOptionPane.showInputDialog(this, "Please tell me a secret!"));
    }//GEN-LAST:event_btnTellSecretActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jButton1ActionPerformed
    {//GEN-HEADEREND:event_jButton1ActionPerformed
        this.InteractionHappened = true;
    }//GEN-LAST:event_jButton1ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnTellSecret;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel lblSecret;
    private javax.swing.JLabel lblSecretLabel;
    // End of variables declaration//GEN-END:variables

}
